USE [master]
ALTER DATABASE [crm3000] SET  SINGLE_USER WITH ROLLBACK IMMEDIATE
USE [master]
EXEC master.dbo.sp_detach_db @dbname = N'crm3000'
